home *** CD-ROM | disk | FTP | other *** search
- @2{ANSWER TO STEVE'S CODING PROBLEM
- @3
- }Sent In By MS Beardwood
- @4
-
- Here's the answer to Steve's problem in just one line ...
- @1eg.
- Exec "sys:c/list > Ram:Test.asc All DH0:"
- @4
- The above line will create a list of all the Dirs and Files on DH0:
- and save them as a text file in the Ram: Disk. The program
- uses the LIST command from WBench and as long as the device is
- mounted, then it will create a list of the disk.
-
- You could also use the DIR command from the C Dir if you don't like
- the way LIST sets out the text file.
- @1eg.
- Exec "sys:c/dir > Ram:Test.asc DH0: Opt a"
- @4
- So now I'm sure you could write the rest of the program yourself.
- @1eg
- DEVICE$="DH0:" : OUTPUT$="RAM:Test.asc"
- Exec "SYS:C/List > "+OUTPUT$+" All "+DEVICE$
- etc.
- @4You could also get Amos to format the text for you into the format
- of your choice ...
-
- Well, that's all. I hope you like it.
-
- Scott.
-
- @5
- Thanx for taking the time out to send in a solution to Steve's
- problem Scott.
-
- I'm sure Steve will have many happy (and frustrating) hours trying
- to work out a way to get Amos to format his text.
-
- Don't ya know Steve is a lamer ?
- @1
- (But a seriously good 'un ;-)
- @5
- There is other help files on this issue of Az, so check them out
- also. (See Steve, everyone's trying to help you out?!?)
- Thanx again.
- @1
- End.
-